// 创建一个总仓库
import { configureStore } from "@reduxjs/toolkit";
import questionareReducer from './modules/questionare';


export const store = configureStore({
    reducer: {
        // 在这里添加你的reducer
        questionare: questionareReducer,
    }
})

export type RootState = ReturnType<typeof store.getState>;

export interface Answer {
    answer_name?: string,
    topic_id?: number,
    topic_answer_id: number,
    is_standard_answer?: number,
}

export interface Ques {
    topic_name?: string,
    topic_answer?: Answer[]
}